import request from "@/utils/request";

// 查询合同到期提醒列表
export function listExpirationReminder(query) {
  return request({
    url: "/contract/ExpirationReminder/list",
    method: "get",
    params: query,
    handleError: true,
  });
}

// 查询合同到期提醒详细
export function getExpirationReminder(expirationReminderId) {
  return request({
    url: "/contract/ExpirationReminder/" + expirationReminderId,
    method: "get",
    handleError: true,
  });
}

// 新增合同到期提醒
export function addExpirationReminder(data) {
  return request({
    url: "/contract/ExpirationReminder",
    method: "post",
    data: data,
  });
}

// 修改合同到期提醒
export function updateExpirationReminder(data) {
  return request({
    url: "/contract/ExpirationReminder",
    method: "put",
    data: data,
  });
}

// 删除合同到期提醒
export function delExpirationReminder(expirationReminderId) {
  return request({
    url: "/contract/ExpirationReminder/" + expirationReminderId,
    method: "delete",
  });
}
